package appapi.Vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 角色权限请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/05/18 16:21
 */
@ApiModel
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class RoleAuthVo {
    @ApiModelProperty(value = "角色Id",required = true)
    @NotNull(message = "角色Id不能为空")
    private Long roleId;

    @ApiModelProperty(value = "角色权限",required = true)
    @NotNull(message = "角色权限不能为空")
    private List<Long> roleModuIds;
}
